/*
 * @Author: dctxf
 * @Date:   2017-12-14 10:37:04
 * @Last Modified by:   dctxf
 * @Last Modified time: 2017-12-14 13:36:50
 */
module.exports = function (arr) {
  const result = []
  for (let i = 0, times = arr.length; i < times; i++) {
    if (Array.isArray(arr[i])) {
      result.concat(arr[i])
    } else {
      result.push(arr[i])
    }
  }
  return result
}